package com.gdou.service;

import com.gdou.commons.Result;
import com.gdou.dto.AccountDto;
import com.gdou.model.Account;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface AccountService {
    List<Account> findAll();

    boolean hasAccount(String username);

    /*登录*/
    Result findLogin(AccountDto accountDto, HttpSession session);

    Result findAccountsByPage(Integer pageNum, Integer pageSize);

    Result modifyAccountImgUrl(HttpSession session,String imgUrl);

    /*修改指定管理员的状态*/
    Result modifyAccountStatus(Integer status, Long id, HttpSession session);

    Result modifyRestyAccountPwd(Long id,HttpSession session);

    Result removeOneAccountById(Long id,HttpSession session);

    Result saveAccount(String username, HttpSession session);

    Result modifyAccountPwd(String newPwd, HttpSession session);
}
